<template>
<!--  <Login></Login>-->
  <router-view/>
</template>
<script setup>
// import adminindex from '@/views/adminindex'
import requestUtil from '@/util/request'
import store from '@/store'
// import Login from '@/views/login'

const a = async () => {
  const result = await requestUtil.get('test/login')
  const data = result.data
  if (data.code === 200) {
    const token = data.token
    console.log('登陆成功:token' + token)
    store.commit('SET_TOKEN', token)
  } else {
    console.log('登录出错')
  }
}

const b = async () => {
  const result = await requestUtil.get('test/user/list')
  const data = result.data
  if (data.code === 200) {
    const userList = data.userList
    console.log('用户信息:' + userList)
  }
}
</script>
<style lang="scss">
*{
  margin: 0;
  padding: 0;
  vertical-align: top;
  list-style: none;
  box-sizing: border-box;
  text-decoration: none;
  
}
body{
  min-width: 1000px;
}
//html,body,#app{
//  height: 100%;
//}
//.app-container{
//  padding:20px
//}
</style>
